import { Controller, Get } from '@nestjs/common';
import { TypeOrmsService } from './typeorms.service';

@Controller('api/typeorm')
export class TypeOrmsController {
  constructor(private readonly typeOrmsService: TypeOrmsService) {}

  @Get()
  test() {
    return this.typeOrmsService.findAll();
  }

  @Get('/getTree')
  getTree() {
    return this.typeOrmsService.findTree()
  }
}
